import Http, {HttpParamsProps, ReqProps} from "@/common/http";
import {BaseEntitys} from "@/common/httptypes";

//银行列表
export type BankSelectList = {
  id: string
  bankName?: string
  contacts?: string
  contactsPhone?: string
  del?: boolean
  deptId?: string
} & BaseEntitys


class CommonInterface {

  bankList(props: ReqProps<void>) {
    Http.doGet("/blank/selectList", props)
  }
  enptTypeList(props: ReqProps<{val:string,name:string,parentId:string}[]>) {
    Http.doGet("/dictionary/selectAllDictCode?dictCode=DEPT_FLAG", props)
  }
  uploadFileUrl(props: ReqProps<void>){
    Http.postForm("/file/fileResource/uploadFiles", props)
  }
}

// eslint-disable-next-line import/no-anonymous-default-export
export default new CommonInterface()



